<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of EImages
 *
 * @author andrea
 */
class EImages_vidwiz extends Entity_vidwiz{
    public $publisher_username;
    public $description;
    public $metatags;
    public $title;
    public $upload_date;
    public $file_position;
    public $id;
    
    /**
     * Crea l'oggetto a partire dall'array
     * @param array $fields ['nomecampo]=>valorecampo
     * @return EImages l'oggetto richiesto
     */
    public function generateObject($fields) {
        foreach($this as $key => $value){
            if(isset($fields[$key]))
                $this->$key = $fields[$key];
                }
        $this->upload_date = date("Y-m-d");
        $this->id = "";
        return $this;
    }
}

?>
